package com.hancheng.ordercloud.business.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单表 实体类
 *
 * @author 韩诚
 * @date 2025/06/22
 */
@Data
@NoArgsConstructor
@ApiModel("订单表 实体类PO")
@TableName(value = "`order`")
public class OrderPO implements Serializable {

	private static final long serialVersionUID = -1L;

	@ApiModelProperty(value = "订单ID")
    @TableId(value = "id", type = IdType.AUTO)
	private Long id;

	@ApiModelProperty(value = "订单编号")
    @TableField(value = "order_code")
	private String orderCode;

	@ApiModelProperty(value = "订单金额")
    @TableField(value = "order_price")
	private BigDecimal orderPrice;

	@ApiModelProperty(value = "订单状态")
    @TableField(value = "order_status")
	private Integer orderStatus;

	@ApiModelProperty(value = "发货时间")
    @TableField(value = "deliver_time")
	private Date deliverTime;

	@ApiModelProperty(value = "备注")
    @TableField(value = "remark")
	private String remark;

	@ApiModelProperty(value = "创建者用户ID")
    @TableField(value = "create_user_id")
	private Long createUserId;

	@ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time")
	private Date createTime;

	@ApiModelProperty(value = "更新者用户ID")
    @TableField(value = "update_user_id")
	private Long updateUserId;

	@ApiModelProperty(value = "更新时间")
    @TableField(value = "update_time")
	private Date updateTime;

}